Release 10.1A: OpenEdge Development:
Progress 4GL Reference
DAY function
Evaluates a date expression and returns a day of the month integer value from 1 to 31, inclusive.
Syntax
dateAn expression whose value is a DATE.
datetime-expressionAn expression that evaluates to a DATETIME or DATETIME-TZ. The DAY function returns the day of the month of the date part of the DATETIME or DATETIME-TZ value.
ExampleThis procedure determines the date one year from a given date, allowing for leap years. You could simply determine a date 365 days later by adding 365 to the d1 variable, but that might not produce the correct result (for example, 1/1/92 + 365 days is 12/31/92).
See also
DATE function, DATE-FORMAT attribute, DATETIME function, DATETIME-TZ function, ETIME function, ISO-DATE function, MONTH function, MTIME function, NOW function, TIME function, TIMEZONE function, TODAY function, WEEKDAY function, YEAR function, YEAR-OFFSET attribute
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |